//
//  AXFSettingTableViewCell.m
//  AIXF
//
//  Created by Macx on 2017/7/14.
//  Copyright © 2017年 Macx. All rights reserved.
//

#import "AXFSettingTableViewCell.h"

@interface AXFSettingTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *logoutLabel;
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *cacheLabel;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@end

@implementation AXFSettingTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setCellIndex:(NSInteger)cellIndex
{
    _cellIndex = cellIndex;

    
    switch (cellIndex)
    {
        case 0:
        {
            self.iconImageView.hidden = NO;
            self.logoutLabel.hidden = YES;
            self.cacheLabel.hidden = YES;
            self.titleLabel.text = @"关于小熊";
            
        }
            break;
        case 1:
        {
            self.iconImageView.hidden = YES;
            self.logoutLabel.hidden = YES;
            self.cacheLabel.hidden = NO;
            self.titleLabel.text = @"清除缓存";
        }
            break;
        case 2:
        {
            self.iconImageView.hidden = YES;
            self.logoutLabel.hidden = NO;
            self.cacheLabel.hidden = YES;
            self.titleLabel.hidden = YES;
        }
            break;
        default:
            break;
    }
}

@end
